<!--FOOTER-->
<div class="marginbottom"></div>
<div class="footer">
<div id="dashboard">
	<div class="container">
    	<div class="row">
            	 <!-- widget --> 
                <section class="span3 clearfix">
                <?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "footer_sidebar_1" ) ) : ?>
					<?php endif; ?>
                </section>
<!-- end widget -->
 <!-- widget -->
				<section class="span3 clearfix">
					<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "footer_sidebar_2" ) ) : ?>
					<?php endif; ?>
				</section>
                <!-- end widget -->
				
                <!-- widget -->
				<section class="span3 clearfix">
					<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "footer_sidebar_3" ) ) : ?>
					<?php endif; ?>
				</section>
                <!-- end widget -->
				
                <!-- widget -->
				<section class="span3 clearfix">
					<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "footer_sidebar_4" ) ) : ?>
					<?php endif; ?>
				</section>
                <!-- end widget -->
                
                   </div>
    </div>
</div>
<!-- /Dashboard -->
</div>
    <!-- Footer -->
<footer>
<div class="container">
  <div class="row">
    <div class="span6">
    	<p><?php echo get_option('of_footer_copyright'); ?></p>
    </div>
    <div class="span6 flR">
    <ul class="social_wrapper">
				<?php
if ( get_option('of_social_facebook') != "" ) { echo '<li class="facebook"><a  href="' . get_option('of_social_facebook') . '"></a></li>'; }
if ( get_option('of_social_twitter') != "" ) { echo '<li class="twitter"><a href="' . get_option('of_social_twitter') . '"></a></li>'; }
if ( get_option('of_social_google') != "" ) { echo '<li class="googleplus"><a href="' . get_option('of_social_google') . '"></a></li>'; }
if ( get_option('of_social_pinterest') != "" ) { echo '<li class="pinterest"><a href="' . get_option('of_social_pinterest') . '"></a></li>'; }
if ( get_option('of_social_vimeo') != "" ) { echo '<li class="vimeo"><a href="' . get_option('of_social_vimeo') . '"></a></li>'; }
if ( get_option('of_social_youtube') != "" ) { echo '<li class="youtube"><a href="' . get_option('of_social_youtube') . '"></a></li>'; }
if ( get_option('of_social_linkedin') != "" ) { echo '<li class="linkedin"><a href="' . get_option('of_social_linkedin') . '"></a></li>'; }
if ( get_option('of_social_skype') != "" ) { echo '<li class="skype"><a href="' . get_option('of_social_skype') . '"></a></li>'; }
if ( get_option('of_social_flickr') != "" ) { echo '<li class="flickr"><a href="' . get_option('of_social_flickr') . '"></a></li>'; }
if ( get_option('of_social_picasa') != "" ) { echo '<li class="picasa"><a href="' . get_option('of_social_picasa') . '"></a></li>'; }
if ( get_option('of_social_dribbble') != "" ) { echo '<li class="dribble"><a href="' . get_option('of_social_dribbble') . '"></a></li>'; }
if ( get_option('of_social_forrst') != "" ) { echo '<li class="forrst"><a href="' . get_option('of_social_forrst') . '"></a></li>'; }
if ( get_option('of_social_lastfm') != "" ) { echo '<li class="lastfm"><a href="' . get_option('of_social_lastfm') . '"></a></li>'; }
if ( get_option('of_social_rss') != "" ) { echo '<li class="rss"><a href="' . get_option('of_social_rss') . '"></a></li>'; }
						?>
		</ul>	
    </div>
  </div>
</div>
</footer>
<!-- /Footer -->
    <script src="<?php echo get_template_directory_uri(); ?>/resources/js/custom.js"></script>
<?php echo stripcslashes( get_option('of_tracking_code') ); // Tracking code (Google Analytics) ?>
<?php wp_footer(); ?>
	</body>
</html>
